package com.xx.xxx.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.xx.xxx.api.TestService;
import org.springframework.stereotype.Component;

@Component("testService")
@Service
public class TestServiceImpl implements TestService {

	public String testSayDubbo() {
		System.out.println("---testSayDubbo------为什么--------");
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append("Dubbo say:Hello!!!!!");
		return stringBuffer.toString();
	}

	public String say(String name) {
		System.out.println("----say-------------");
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(name+" say:Hello!!!!!");
		return stringBuffer.toString();
	}

}
